<?php
$date=time();
$AnneeN=date("Y",$date);
$MoisN=date("m",$date);
$JourN=date("d",$date);
if(!isset($_GET['Year'])){
$Year='2012';
}
else{
$Year=$_GET['Year'];
}
if(isset($_GET['event'])){
$Event=$_GET['event'];
$Search="AND idActu='".$Event."'";
}
else{
	$ReqSearch=mysql_query("SELECT * FROM actualites WHERE MiseEnLigneActu='oui' AND Annee>='$Year'  && Mois>='$MoisN' && Jour>='$JourN'  LIMIT 1 ") or die(mysql_error());
	$nbSearch=mysql_num_rows($ReqSearch);
	if($nbSearch==0){
	$Search=" ORDER BY idActu DESC ";
	}
	else{
	$dataSearch=mysql_fetch_assoc($ReqSearch);
	$Event=$dataSearch['idActu'];
	$Search="AND Annee>='$Year'  && Mois>='$MoisN' && Jour>='$JourN' ORDER BY idActu";
	}
}
if(!isset($_GET['lang'])){
$lang='fr';
}
else{
$lang=$_GET['lang'];
}
?>